package com.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
@TableName("document_summary")
public class DocumentInfo {
    @TableId(type = IdType.AUTO)
    private Long id;
    @ExcelProperty("标题")
    private String title;
    @ExcelProperty("作者")
    private String author;
    @ExcelProperty("来源")
    private String source;
    @ExcelProperty("发布时间")
    private String releaseTime;
    @ExcelProperty("数据库")
    @TableField("datasource")
    private String datasource;
    @ExcelProperty("下载次数")
    private Integer downloadCount;
    @ExcelProperty("详情页链接")
    private String detailLink;
    @ExcelProperty("搜索关键词")
    private String searchKeyword;
}
